package multidraw.model.commands;

import java.io.Serializable;

import multidraw.model.Canvas;

public abstract class Command implements Serializable {
	protected long commandID;
	protected String sessionID;
	
	protected transient Canvas canvas;
	
	public abstract void execute();
		
	public long getCommandID() {
		return commandID;
	}
	
	public void setCanvas(Canvas canvasModel) {
		this.canvas = canvasModel;
	}
	
	public void setCommandID(long id) {
		commandID = id;
	}
	
	public void setSessionID(String sessionID) {
		this.sessionID = sessionID;
	}
	
	public String getSessionID() {
		return sessionID;
	}
}
